package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 评论管理对象 comment
 *
 * @author ruoyi
 * @date 2022-07-01
 */
@ApiModel(value = "Comment", description = "评论实体")
public class Comment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ApiModelProperty("编号")
    @Excel(name = "编号")
    private Integer id;

    /**
     * 动态ID
     */
    @ApiModelProperty("动态ID")
    @Excel(name = "动态ID")
    private Long pictureId;

    /**
     * 视频ID
     */
    @ApiModelProperty("视频ID")
    @Excel(name = "视频ID")
    private Long videoId;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 举报数
     */
    @ApiModelProperty("举报数")
    @Excel(name = "举报数")
    private Long reportCount;

    /**
     * 父ID
     */
    @ApiModelProperty("父ID")
    @Excel(name = "父ID")
    private Long parentId;

    /**
     * 顶点id
     */
    @ApiModelProperty("顶点id")
    @Excel(name = "顶点id")
    private Long topId;

    /**
     * 点赞数
     */
    @ApiModelProperty("点赞数")
    @Excel(name = "点赞数")
    private Long upCount;

    /**
     * 评论内容
     */
    @ApiModelProperty("评论内容")
    @Excel(name = "评论内容")
    private String commentText;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setPictureId(Long pictureId) {
        this.pictureId = pictureId;
    }

    public Long getPictureId() {
        return pictureId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }

    public Long getVideoId() {
        return videoId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setReportCount(Long reportCount) {
        this.reportCount = reportCount;
    }

    public Long getReportCount() {
        return reportCount;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setTopId(Long topId) {
        this.topId = topId;
    }

    public Long getTopId() {
        return topId;
    }

    public void setUpCount(Long upCount) {
        this.upCount = upCount;
    }

    public Long getUpCount() {
        return upCount;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }

    public String getCommentText() {
        return commentText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pictureId", getPictureId())
                .append("videoId", getVideoId())
                .append("userId", getUserId())
                .append("reportCount", getReportCount())
                .append("parentId", getParentId())
                .append("topId", getTopId())
                .append("upCount", getUpCount())
                .append("commentText", getCommentText())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
